#include <iostream>
#define SIZE 100
using namespace std;

int numbers[SIZE], n = 7;

int main()
{
	int i, j, temp;
	for (i = 0; i < n; ++i)
	{	
		cout << "number: ";
		cin >> numbers[i];
	}
	
	for (i = 0; i < n; ++i)
		if (numbers[i] % 2 == 0)
		{	
			j = i;
			while (numbers[j - 1] % 2 != 0)
			{
				temp = numbers[j - 1];
				numbers[j - 1] = numbers[j];
				numbers[j] = temp;
				--j;
			}
		}
	
	for (i = 0; i < n; ++i)
		cout << numbers[i];
}